//Init:
function topSlider() {
    $("#top-content dl").animate({
        "top" : -index * height
    }, 500);
    index += everytime;
    if(index >= maxIndex - 1 || index <= 0)
        everytime = -everytime;

}

//top slide:
function Init() {
    //top content:
    $("#top-content dl dd").each(function() {
        $(this).height(height);
    });
    //top thumbnail:
    var thumbnailHeight = height / maxIndex;
    $("#top-thumbnail dl dd").each(function() {
        $(this).height(thumbnailHeight);
    });
    //center content:
    //4X3:
    var columnsum = 4;
    var rowsum = 3;

    $("#center div").each(function(i) {

        var square = $(this);
        square.width((100 - rowsum) / columnsum + "%");
        square.height(square.width() * 0.6);
        square.css({
            "marginLeft" : i % columnsum == 0 ? 0 : 1 + "%",
            "marginTop" : 1 + "%"
        });
    });
    //bottom:

}